package com.mindshifter.pivotaltracker.services.v3.events
{
	import flash.events.Event;
	
	public class TrackerServiceEvent extends Event
	{
		public static const SERVICE_CONNECTED:String ="serviceConnected";
		public static const SERVICE_CONNECTION_ERROR:String = "serviceConnectionError";
		
		public var serviceData:Object;
		
		public function TrackerServiceEvent(type:String,serviceData:Object=null,bubbles:Boolean=false, cancelable:Boolean=false):void
		{
			super(type, bubbles, cancelable);
			this.serviceData = serviceData;
		}
		override public function toString():String
		{
			return formatToString("TrackerServiceEvent","serviceData","type","bubbles","cancelable");
		}
		
		override public function clone():Event
		{
			return new TrackerServiceEvent(type,serviceData,bubbles,cancelable);
		}
	}
}